package com.partsoft.dits.mq;

import org.apache.commons.pool.KeyedObjectPool;
import org.apache.commons.pool.impl.GenericKeyedObjectPool;

public class MQQMObjectPool extends GenericKeyedObjectPool implements
		KeyedObjectPool {
	public MQQMObjectPool() {
		super();
		GenericKeyedObjectPool.Config cfg = new GenericKeyedObjectPool.Config();
		cfg.maxActive = 10;
		cfg.maxIdle = 5;
		cfg.minIdle = 1;
		cfg.testOnBorrow = true;
		cfg.testOnReturn = false;
		cfg.testWhileIdle = false;
		setConfig(cfg);
	}
}
